Namespaces

Functions

bool
is_valid_xml(string $xml)

Check if a string is valid XML.

array
validate_xml(string $xml, string $xsd)

Validate XML string.

mixed
xml_decode(string $data, string $class_name = SimpleXMLElement::class, int $options = 0, string $namespace_or_prefix = '', bool $is_prefix = false)

Convert a string of XML into an array.

string
xml_encode(array $array, string $rootElementName = 'document', bool $replaceSpacesByUnderScoresInKeyNames = true, string $xmlEncoding = 'UTF-8', string $xmlVersion = '1.0')

Convert the an array to an xml string.